package cn.edu.cug.cs.gtl.apps.ui.actions;

import cn.edu.cug.cs.gtl.apis.ui.AbstractApplication;
import cn.edu.cug.cs.gtl.apps.ui.MainApp;
import cn.edu.cug.cs.gtl.apis.render.viewers.Viewer;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class OpenInventorStudioActionListener  implements ActionListener {
    AbstractApplication theApp;
    public OpenInventorStudioActionListener(AbstractApplication theApp){
        this.theApp = theApp;
    }
    @Override
    public void actionPerformed(ActionEvent e) {
        Viewer viewer = theApp.getMainFrame().getRenderPanel().getViewer();
        theApp.getFactory().createTune().start(viewer.getRenderArea().getSceneInteractor());
    }
}
